<html>
<body>
<?php 
$myMorph=new SWFMorph(); 
$mySquare=$myMorph->getShape1(); 
$mySquare->setLine(5,0,0,255); 
$mySquare->setLeftFill(255,0,0); 
$mySquare->drawLine(100,0); 
$mySquare->drawLine(0,100); 
$mySquare->drawLine(-100,0); 
$mySquare->drawLine(0,-100); 
$myTriangle=$myMorph->getShape2(); 
$myTriangle->setLine(5,255,255,0); 
$myTriangle->setLeftFill(0,0,255); 
$myTriangle->movePen(50,0); 
$myTriangle->drawLineTo(100,0); 
$myTriangle->drawLineTo(50,100); 
$myTriangle->drawLineTo(0,0); 
$myTriangle->drawLineTo(50,0); 
$myMovie=new SWFMovie(); 
$myMovie->setDimension(200,200); 
$myMovie->setBackground(255,255,255); 
$firstMorph=$myMovie->add($myMorph); 
$firstMorph->moveTo(100,100); 
for($i=0; $i<1.05; $i+=0.05){ 
$firstMorph->setRatio($i); 
$myMovie->nextFrame(); 
} 
for($p=0; $p<10; $p++){ 
$myMovie->nextFrame(); 
} 
$myMovie->save("temp/lesson10.swf"); 
?> 
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://active.macromedia.com/flash2/cabs/swflash.cab#version=4,0,0,0" ID=objects WIDTH=200 HEIGHT=200>
<PARAM NAME=movie VALUE="temp/lesson10.swf">
<EMBED src="temp/lesson10.swf" WIDTH=200 HEIGHT=200 TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"> 
</OBJECT>
</body>
</html>